import { createApp } from 'vue'
import App from '@/App.vue'
// 引入清除默认样式文件
import '@/style/reset.scss'
// 引入全局组件
import HospitalTop from '@/components/hospital_top/index.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
import SvgIcon from '@/components/SvgIcon/index.vue'
// 引入路由
import router from '@/router'
// 引入element国际化
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
// 注册全局组件
app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('SvgIcon', SvgIcon)
// 注册路由
app.use(router)
app.use(ElementPlus, {
  locale: zhCn
})
app.mount('#app')
